#include "memory.h"

#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif

namespace qb {
namespace base {
unsigned long getMemPageSize() {
#ifdef WIN32
  SYSTEM_INFO si = {0};
  GetSystemInfo(&si);
  return si.dwAllocationGranularity;
#else
  return 16 * getpagesize();
#endif
}
}  // namespace base
}  // namespace qb
